package com.example.fp.cgc.controller

import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.RequestMapping

@Controller
open class WebController {

    @RequestMapping("/cgcTypeList")
    open fun sayHello() = "cgc/cgcTypeList"

    @RequestMapping("/ec2")
    open fun cgcEc2() = "cgc/ectest2"

    @RequestMapping("/ec3")
    open fun cgcEc3() = "cgc/ecTest3"

    @RequestMapping("/ec4")
    open fun cgcEc4() = "cgc/ecTest4"

    @RequestMapping("/ec5")
    open fun cgcEc5() = "cgc/ecTest5"

    @RequestMapping("/index")
    open fun index() = "index/index"

    @RequestMapping("/index2")
    open fun index2() = "index/index2"

    @RequestMapping("/appsView")
    open fun appsView() = "rankViewByCgc/appsListView"

    /**
     * 2020-03-03
     */
    @RequestMapping("/gameView")
    open fun gameView() = "rankViewByCgc/gameListView"
    /**
     * 2020-03-03
     */
    @RequestMapping("/gzhListView")
    open fun gzhListView() = "rankViewByCgc/gzhListView"
    /**
     * 2020-03-03
     */
    @RequestMapping("/livenessView")
    open fun livenessView() = "rankViewByCgc/livenessView"
    /**
     * 2020-03-03
     */
    @RequestMapping("/overseasView")
    open fun overseasView() = "rankViewByCgc/overseasView"

    @RequestMapping("/userView")
    open fun userView() = "rankViewByCgc/userView"

    @RequestMapping("/websocket")
    open fun webSocket() = "websocket"

    //登录测试
    @RequestMapping("/login")
    open fun login() = "index/login"
    //登录测试
    @RequestMapping("/register")
    open fun regist() = "index/register"

    /**
     * @since 2020-02-14
     */
    @RequestMapping("/chat/{uid}&{oid}")
    open fun chat() = "chatByCgc/chat"
    /**
     * @since 2020-02-14
     */
    @RequestMapping("/chat1/{uid}&{oid}")
    open fun chat1() = "chatByCgc/chat1"


    /**
     *
     */
    @RequestMapping("/chatHistoryView/{uid}&{oid}")
    open fun chatHistory() = "chatByCgc/chatHistory"

    @RequestMapping("/sendMessage")
    open fun sendMessage() = "chatByCgc/SendMessage"

    //游戏图形化测试
    @RequestMapping("/gameview")
    open fun gameview() = "ajaxtest"

    @RequestMapping("/gzhView")
    open fun gzhView() = "zxd"

    @RequestMapping("/zzzz")
    open fun zzzz() = "livenessweb/Lechart2"

    @RequestMapping("/zzzz2")
    open fun zzzz2() = "livenessweb/Liveness"
}